﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Linq;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using MailBodyFormatter;

namespace InquiryRequestActivities
{
    public partial class FormatFinalResponse : SequenceActivity
    {

        private void FormatFinalResponseCdAct_ExecuteCode(object sender, EventArgs e)
        {
            InquiryState.inquiry.Response = InquiryState.inquiry.bookedMessages.ToString() + InquiryState.inquiry.availableMessages.ToString() + MailBody.GetFormattedBody(InquiryState.inquiry.WebAddress, InquiryState.inquiry.parsedRequest.Name, InquiryState.inquiry.parsedRequest.NumInParty, InquiryState.inquiry.totalRate, InquiryState.inquiry.taxAmount, InquiryState.inquiry.parsedRequest.NumNights, InquiryState.inquiry.parsedRequest.ArrivalDate, InquiryState.inquiry.isBooked) + "\r\n\r\n\r\nAvailability Chart:\r\n-------------------------\r\n\r\n" + InquiryState.inquiry.availability;

        }
    }
}
